pkgincludedir = $(includedir)/datrie

pkginclude_HEADERS =	\
	typedefs.h	\
	triedefs.h	\
	alpha-map.h	\
	trie.h

EXTRA_DIST = libdatrie.map libdatrie.def

INCLUDES = -I$(top_srcdir)

lib_LTLIBRARIES = libdatrie.la

libdatrie_la_SOURCES =	\
	typedefs.h	\
	triedefs.h	\
	trie-private.h	\
	fileutils.h	\
	fileutils.c	\
	darray.h	\
	darray.c	\
	tail.h		\
	tail.c		\
	trie.h		\
	trie.c		\
	alpha-map.h	\
	alpha-map-private.h	\
	alpha-map.c

if LD_HAS_VERSION_SCRIPT
EXPORTS_FLAGS = -Wl,-version-script -Wl,$(srcdir)/libdatrie.map
EXPORTS_DEPS = libdatrie.map
else
EXPORTS_FLAGS = -export-symbols $(srcdir)/libdatrie.def
EXPORTS_DEPS = libdatrie.def
endif

libdatrie_la_LDFLAGS =	-no-undefined \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	$(EXPORTS_FLAGS)
libdatrie_la_DEPENDENCIES = $(EXPORTS_DEPS)

